Data

class Data : GeneratedMessage, MeshProtos.DataOrBuilder

(Formerly called SubPacket)
The payload portion fo a packet, this is the actual bytes that are sent
inside a radio packet (because from/to are broken out by the comms library)
Protobuf type meshtastic.Data

Types

Link copied to clipboard
class Builder : GeneratedMessage.Builder<BuilderT> , MeshProtos.DataOrBuilder

(Formerly called SubPacket)
The payload portion fo a packet, this is the actual bytes that are sent
inside a radio packet (because from/to are broken out by the comms library)
Protobuf type meshtastic.Data

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
open fun equals(obj: Any): Boolean
Link copied to clipboard
open fun getBitfield(): Int

Bitfield for extra flags. First use is to indicate that user approves the packet being uploaded to MQTT.
optional uint32 bitfield = 9;
Link copied to clipboard
Link copied to clipboard
fun getDescriptor(): Descriptors.Descriptor
Link copied to clipboard
open fun getDest(): Int

The address of the destination node.
This field is is filled in by the mesh radio device software, application
layer software should never need it.
RouteDiscovery messages _must_ populate this.
Other message types might need to if they are doing multihop routing.
fixed32 dest = 4;
Link copied to clipboard
open fun getEmoji(): Int

Defaults to false. If true, then what is in the payload should be treated as an emoji like giving
a message a heart or poop emoji.
fixed32 emoji = 8;
Link copied to clipboard
open fun getParserForType(): Parser<MeshProtos.Data>
Link copied to clipboard
open fun getPayload(): ByteString

TODO: REPLACE
bytes payload = 2;
Link copied to clipboard

Formerly named typ and of type Type
.meshtastic.PortNum portnum = 1;
Link copied to clipboard
open fun getPortnumValue(): Int

Formerly named typ and of type Type
.meshtastic.PortNum portnum = 1;
Link copied to clipboard
open fun getReplyId(): Int

If set, this message is intened to be a reply to a previously sent message with the defined id.
fixed32 reply_id = 7;
Link copied to clipboard
open fun getRequestId(): Int

Only used in routing or response messages.
Indicates the original message ID that this message is reporting failure on. (formerly called original_id)
fixed32 request_id = 6;
Link copied to clipboard
Link copied to clipboard
open fun getSource(): Int

The address of the original sender for this message.
This field should _only_ be populated for reliable multihop packets (to keep
packets small).
fixed32 source = 5;
Link copied to clipboard

Not normally used, but for testing a sender can request that recipient
responds in kind (i.e. if it received a position, it should unicast back it's position).
Note: that if you set this on a broadcast you will receive many replies.
bool want_response = 3;
Link copied to clipboard
open fun hasBitfield(): Boolean

Bitfield for extra flags. First use is to indicate that user approves the packet being uploaded to MQTT.
optional uint32 bitfield = 9;
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun parseDelimitedFrom(input: InputStream, extensionRegistry: ExtensionRegistryLite): MeshProtos.Data
Link copied to clipboard
open fun parseFrom(data: ByteString): MeshProtos.Data
open fun parseFrom(input: CodedInputStream): MeshProtos.Data
open fun parseFrom(data: Array<Byte>, extensionRegistry: ExtensionRegistryLite): MeshProtos.Data
open fun parseFrom(data: ByteString, extensionRegistry: ExtensionRegistryLite): MeshProtos.Data
open fun parseFrom(input: CodedInputStream, extensionRegistry: ExtensionRegistryLite): MeshProtos.Data
open fun parseFrom(input: InputStream, extensionRegistry: ExtensionRegistryLite): MeshProtos.Data
open fun parseFrom(data: ByteBuffer, extensionRegistry: ExtensionRegistryLite): MeshProtos.Data
Link copied to clipboard
open fun parser(): Parser<MeshProtos.Data>
Link copied to clipboard
Link copied to clipboard
open fun writeTo(output: CodedOutputStream)